package de.tum.in.eist.poll.shared;

import java.util.Date;
import java.util.LinkedList;
import java.util.List;

import no.eirikb.gwtchannelapi.client.Message;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Statistic implements IsSerializable, Message{
	Date dateOfLecture;
	public int[] question1 = new int[5];
	public List<String> question2 = new LinkedList<String>();
	public List<String> question3 = new LinkedList<String>();
	
	public Statistic(Date dateOfLecture) {
		this.dateOfLecture = dateOfLecture;
		for (int i = 0; i < question1.length; i++){
			question1[i] = 0;
		}
	}
	public Statistic(){
		dateOfLecture = null;
	}
	
	public void addQuestions(int q1, String q2, String q3){
		question1[q1+2]++;
		question2.add(q2);
		question3.add(q3);
	}
	
}
